import 'package:family_expense/features/journey/widgets/journey_footmark.dart';
import 'package:family_expense/features/journey/widgets/journey_list.dart';
import 'package:flutter/material.dart';
import 'package:my_flutter_core/my_flutter_core.dart';

class JourneyHome extends StatelessWidget {
  const JourneyHome({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('我的旅程'),
      ),
      body: ListView(
        children: [
          ListTile(
            title: const Text('旅程足迹'),
            trailing: const ListTileNavigateNextIcon(),
            onTap: () => NavigatorHelper.push(context, const JourneyFootmark()),
          ),
          ListTile(
            title: const Text('旅程列表'),
            trailing: const ListTileNavigateNextIcon(),
            onTap: () => NavigatorHelper.push(context, const JourneyList()),
          ),
        ],
      ),
    );
  }
}
